﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MYLSOFT.JsonSimple;


namespace wb_ext_js.clasesNET
{
    /// <summary>
    /// Descripción breve de solicitud
    /// </summary>
    public class solicitud : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            
            
            if (context.Request.Params["x"].Equals("1"))
                context.Response.Write("{success : true , msg : 'Es un mensaje de confirmacion'}");
            else
                context.Response.Write("{success : false , msg : 'Parametro incorrecto'}");
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}